import App from './App'
import store from './store'

// 自定义头部标题
import cuCustom from './colorui/components/cu-custom.vue'
import dataNull from './components/data-null'
import showModal from './components/show-modal'
import wsTextarea from './components/ws-textarea'
import wsInput from './components/ws-input'
import loginModal from './components/login-modal'
Vue.component('cu-custom', cuCustom)
Vue.component('data-null', dataNull)
Vue.component('show-modal', showModal)
Vue.component('ws-textarea', wsTextarea)
Vue.component('wsInput', wsInput)
Vue.component('loginModal', loginModal)


import showAlert from './components/show-alert/index.vue'
Vue.component('show-alert',showAlert)
Vue.prototype.$onLaunched = new Promise(resolve => {
	Vue.prototype.$isResolve = resolve
})
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false;
Vue.prototype.version = 1;

App.mpType = 'app'
const app = new Vue({
	...App,
	store
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif